'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
	const {
		router,
		controller
	} = app;
	// router.get('/', controller.home.index);

	router.get('/api/verif', controller.user.verif);
	router.post('/api/register', controller.user.register);
	router.post('/api/addgoods', controller.goods.addgoods);
	router.post('/api/login', controller.user.login);
	router.get('/api/userinfo', controller.user.userinfo);
	router.get('/api/loginout', controller.user.loginout);
	router.get('/api/getgoods', controller.goods.getgoods);
	router.get('/api/goodsdetail', controller.goods.goodsdetail);
	router.get('/api/getcomments', controller.goods.getcomments);
	router.get('/api/setcomments', controller.goods.setcomments);

};